BACKUP_DIR="/tmp/xmonad_backup"
rm -rf $BACKUP_DIR
mkdir $BACKUP_DIR 

# BACKUP PART
# xmonad 
if [ -d ~/.xmonad ]
    then
    mv -f  ~/.xmonad $BACKUP_DIR 
fi
# users pulse_vol.sh if exists 
if [ -d ~/bin ]
then
    if [ -e ~/bin/pulse_vol.sh ]
    then
        mv -f ~/bin/pulse_vol.sh $BACKUP_DIR/
    fi
fi

if [ -e ~/.stalonetrayrc ]
then
    mv -f ~/.stalonetrayrc $BACKUP_DIR/
fi
if [ -d ~/.bbtools ]
then
    if [ -e ~/.bbtools/bbpager.rc ]  
    then
        mv -f ~/.bbtools/bbpager.rc $BACKUP_DIR/
    fi
fi

# copy the xmonad dir in user home as hidden.
cp -rf xmonad ~/.xmonad 
mkdir -p ~/bin
mkdir -p ~/.bbtools
cp -rf bin/* ~/bin/
cp dot_files/bbpager.rc ~/.bbtools/bbpager.rc
cp dot_files/stalonetrayrc ~/.stalonetrayrc


